<?php
/**
 * Created by PhpStorm
 * USER MingTingLiang   QQ 915802070
 * Date 2020-12-15-015   19:25
 */


class User
{
    public $userName = "guest";
    public $userSex = 18;

    public $delegator = null;

    public function getDiscount()
    {
        return 1;
    }

    public function __call($name, $arguments)
    {
        // TODO: Implement __call() method.
        if ($this->delegator != null) {
            return call_user_func_array([$this->delegator, $name], $arguments);
        }
        return false;
    }
}